package com.wyh.controller.g3controller;

import com.wyh.common.result.Result;
import com.wyh.domain.vo.g3vo.CustomerBuildingVo;
import com.wyh.domain.vo.g3vo.G3CalculationAccuracyVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/06/20/10:43
 **/
@Api(tags = "计算精度")
@RestController
@RequestMapping("/calculationAccuracy")
public class G3CalculationAccuracyController {
    @ApiOperation("精度集合")
    @PostMapping("/getCalculationAccuracyList")
    public Result<G3CalculationAccuracyVO> getCalculationAccuracyList() {
        G3CalculationAccuracyVO calculationAccuracyVO=new G3CalculationAccuracyVO();
        List<Integer> integerList=new ArrayList<>();
        integerList.add(1);
        calculationAccuracyVO.setCalculationAccuracyList(integerList);
        return Result.success(calculationAccuracyVO);
    }
    @ApiOperation("精度设置")
    @PostMapping("/updateCalculationAccuracy")
    public Result getCalculationAccuracyList(@Param("calculationAccuracy") int calculationAccuracy) {
        return Result.success();
    }
}